package me.ereach.di;

import org.junit.Test;

public class MyTest {
    @Test
    public void testPoint() {
        Point p1 = new Point(2, 3);
        Point p2 = new Point(5, 7);
        Geometry geometry = new Geometry();

        // 注入geometry实例
        p1.setiGeometry(geometry);
        System.out.println(p1.getDistance(p2));
    }
}
